package com.tqjc.system.common.entity.BO;

import com.tqjc.business.interactivewithscan.entity.Coord;
import lombok.*;

/**
 * @description: 物料库区点对象
 * @Author: 86195
 * @Date: 2024/1/19 17:48
 **/
@NoArgsConstructor
@AllArgsConstructor
@Data
@Builder
@ToString
public class MaterialAreaPointBO {

    private Double x;


    private Double y;

    private Double z;

    private Integer sort;

    public Coord toCoord(){
        int x = (int) (this.x * 100);
        int y = (int) (this.y * 100);
        int z = (int) (this.z * 100);
        return new Coord(x,y,z);

    }
}
